<script>
 $(document).ready(function() {
    
    $('#search').submit(function() {
 	 	var content = $('#search_content').val();
 	 	var type = $('#search_type').val();
 	 	var price_min =  $('#search_price_min').val();
	    var price_max = $('#search_price_max').val();
        if(content == '')
        {
            alert("Nhập thông tin cần tìm kiếm !!!");
            return false;
        }
        $.ajax({
        url: 'search_controller/search_result_page/'+content+'/'+type+'/'+price_min+'/'+price_max,
        success: function(data) {
            $('#content').html(data);
         }
        });
    });
});
</script>
<form id="search" method="POST" onsubmit="return false;">
    <select id="search_type" name="search_type">
        <option value="1" selected="selected">Laptop</option>
        <option value="3">Điện thoại đi động</option>
        <option value="2">Máy tính bảng</option>
    </select>
    <select id="search_price_min" name="search_price_min">
        <option value="0" selected="selected">Giá từ</option>
        <option value="300">300.000</option>
        <option value="1000">1.000.000</option>
        <option value="2000">2.000.000</option>
        <option value="3000">3.000.000</option>
        <option value="5000">5.000.000</option>
        <option value="7000">7.000.000</option>
        <option value="9000">9.000.000</option>
        <option value="12000">12.000.000</option>
        <option value="15000">15.000.000</option>
    </select>
    <select id="search_price_max" name="search_price_max">
        <option value="0" selected="selected">Giá đến</option>
        <option value="500">500.000</option>
        <option value="1000">1.000.000</option>
        <option value="2000">2.000.000</option>
        <option value="4000">4.000.000</option>
        <option value="6000">6.000.000</option>
        <option value="8000">8.000.000</option>
        <option value="10000">10.000.000</option>
        <option value="11000">11.000.000</option>
        <option value="13000">13.000.000</option>
        <option value="14000">14.000.000</option>
        <option value="18000">18.000.000</option>
        <option value="50000">50.000.000</option>
    <input id="search_content" name="search_content" type="text"/>
    
    <input type="submit" id="submit" value="Tìm kiếm"/>
</form>